package com.woniuxy.hotel.room.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.hotel.room.pojo.Img;
import com.woniuxy.hotel.room.service.ImgsService;

@Controller
@RequestMapping("/imgs")
public class ImgsController {
	@Autowired
	private ImgsService imgService;
	
	
	
	/*查看酒店照片
	 * 
	 * */
	@RequestMapping("/findHotelImgs")
	@ResponseBody
	public List<Img> findHotelImgs(int hotelid){
		return imgService.findHotelImgs(hotelid);
		
	}
	/*查看客房照片
	 * 
	 * */
	@RequestMapping("/findRoomImgs")
	@ResponseBody
	public List<Img> findRoomImgs(int roomid){
		return imgService.findRoomImgs(roomid);
		
	}
}
